package org.example.javachatroom.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.javachatroom.model.User;

@Mapper
public interface UserMapper {
    /**
     * 把用户插入到数据库中 ->注册
     * @param user
     * @return
     */
    int insert(User user);
    /**
     * 根据用户名进行查询    ->登录
     */
    User selectByName(String username);
}
